﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Portfolio_Tracker
{
    public partial class GraphForm : Form
    {
        public GraphForm(List<DateTime> dates, List<Double> values)
        {
            InitializeComponent();

            for (int i = 0; i < values.Count; i++)
                chart1.Series[0].Points.AddXY(dates[i], values[i]);

            chart1.ChartAreas[0].AxisY.Maximum = 50000;
            chart1.ChartAreas[0].AxisY.Minimum = 40000;
            chart1.ChartAreas[0].AxisY.Interval = 1000;
        }
    }
}
